package com.example.demo.behavior.template_method;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/20
 * @Version V1.0
 */
public class TemplateMethodTest {

    public static void main(String[] args) {
        AbstractTask task = new ZhangSanTask();
        task.doWork();

        task = new LisiTask();
        task.doWork();

        task = new LisiTask();
        task.doWork();
    }

}
